package com.fivefu.core.hik.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "hik")
public class HikProperties {
    /**
     * 海康接口地址
     * eg: 172.16.254.200:443
     */
    private String host;

    private String appKey;

    private String appSecret;

    /**
     * 是否启用ssl
     * true:https、false：http
     */
    private Boolean useSSL;

    /**
     * 实时流版本(默认2)
     * 1 / 2
     */
    private Integer previewURLVersion;

    /**
     * 历史流版本(默认2)
     * 1 / 2
     */
    private Integer playBackURLVersion;

    /**
     * 语音对讲版本(默认1)
     * 1 / 3
     */
    private Integer talkURLVersion;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Boolean getUseSSL() {
        return useSSL;
    }

    public void setUseSSL(Boolean useSSL) {
        this.useSSL = useSSL;
    }

    public Integer getPreviewURLVersion() {
        return previewURLVersion;
    }

    public void setPreviewURLVersion(Integer previewURLVersion) {
        this.previewURLVersion = previewURLVersion;
    }

    public Integer getPlayBackURLVersion() {
        return playBackURLVersion;
    }

    public void setPlayBackURLVersion(Integer playBackURLVersion) {
        this.playBackURLVersion = playBackURLVersion;
    }

    public Integer getTalkURLVersion() {
        return talkURLVersion;
    }

    public void setTalkURLVersion(Integer talkURLVersion) {
        this.talkURLVersion = talkURLVersion;
    }
}
